#include "app_message.h"
#include "log/log.h"

int main(int argc, char const *argv[])
{
    char *json = "{\"conn_type\":1,\"id\":\"5859\",\"msg\":\"61626364\"}";

    char chars[100];
    int len = app_message_jsonToChars(json, chars, sizeof(chars));

    log_debug("chars=%.*s, len=%d", len, chars, len);

    char *json2 = app_message_charsToJson(chars, len);
    log_debug("json2=%s", json2);

    return 0;
}
